package com.example.teaching_server.repository;

import com.example.teaching_server.entity.TeachingResourceType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 教学资源类型数据访问层
 */
@Repository
public interface TeachingResourceTypeRepository extends JpaRepository<TeachingResourceType, Integer> {

    /**
     * 查询所有资源类型（按排序号升序排列）
     */
    List<TeachingResourceType> findAllByOrderBySortOrderAsc();
}
